package com.mark.controller;


import com.mark.entity.school.USubjectClassRelation;
import com.mark.entity.school.UTeacher;
import com.mark.service.USubjectClassRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * (USubjectClassRelation)表控制层
 *
 * @author Deng PengFei
 * @since 2021-10-27 11:17:50
 */
@RestController
@RequestMapping("subClaRelation")
public class USubjectClassRelationController {


    @Autowired
    private USubjectClassRelationService uSubjectClassRelationService;


    /**
     * 通过班级编号来获取教师信息
     *
     * @param claId 班级编号
     * @return 对象列表
     */
    @GetMapping("getSubTeaListByClaId")
    public List<USubjectClassRelation> getSubTeaListByClaId(Integer claId) {
       return this.uSubjectClassRelationService.getSubTeaListByClaId(claId);
    }


}